<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>安装环境检测</title>
	<link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
	<script src="http://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
	<link href="http://cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
	<script src="http://cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body style="background: #33b2e2">
<div style="width:1100px;margin: 10px auto;">
	<div style="background: url(http://dev.hdcms.com/resource/images/logo.png) no-repeat;background-size:contain;height:80px;"></div>
	<br/>
	<div class="panel panel-default">
		<nav class="navbar navbar-default alert-info" style="border-radius: 0px;">
			<div class="container-fluid">
				<div class="navbar-header">
					<a class="navbar-brand" href="#"><strong>HDCMS 百分百开源免费,可用于任意商业项目!</strong>
						<small class="text-info">使用高效的HDPHP框架构建</small>
					</a>
				</div>
				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav navbar-right">
						<li><a href="http://www.houdunwang.com" target="_blank">培训</a></li>
						<li><a href="http://www.hdcms.com" target="_blank">官网</a></li>
					</ul>
				</div>
			</div>
		</nav>
		<div class="panel-body">
			<div class="col-xs-3">
				<div class="progress">
					<div class="progress-bar progress-bar-striped progress-bar-danger active" style="width: 40%;">
						40%
					</div>
				</div>
				<ul class="list-group">
					<li class="list-group-item"><strong>安装步骤</strong></li>
					<li class="list-group-item"><i class="fa fa-copyright"></i> 安装协议</li>
					<li class="list-group-item" style="background: #dff0d8"><i class="fa fa-pencil-square-o"></i> 环境检测</li>
					<li class="list-group-item"><i class="fa fa-database"></i> 数据库配置</li>
					<li class="list-group-item"><i class="fa fa-cloud-download"></i> 下载软件包</li>
					<li class="list-group-item"><i class="fa fa-check-circle"></i> 完成</li>
				</ul>
			</div>
			<div class="col-xs-9">
				<div class="panel panel-default">
					<div class="panel-heading">
						服务器信息
					</div>
					<div class="panel-body" style="padding: 10px;">
						<table class="table table-hover table-striped">
							<thead>
							<tr>
								<th>参数</th>
								<th>值</th>
							</tr>
							</thead>
							<tbody>
							<tr>
								<td>操作系统</td>
								<td>{hd:PHP_OS}</td>
							</tr>
							<tr>
								<td>服务器环境</td>
								<td>{hd:SERVER_SOFTWARE}</td>
							</tr>
							<tr>
								<td>PHP版本</td>
								<td>
									{hd:PHP_VERSION}
								</td>
							</tr>
							<tr>
								<td>上传限制</td>
								<td>
									{hd:upload_max_filesize}
								</td>
							</tr>
							<tr>
								<td>最大执行时间</td>
								<td>
									{hd:max_execution_time}
								</td>
							</tr>
							<tr>
								<td>脚本运行最大内存</td>
								<td>
									{hd:memory_limit}
								</td>
							</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div class="alert alert-info">
					必须满足以下环境要求才可以运行HDCMS产品.
				</div>
				<div class="panel panel-default">
					<div class="panel-heading">
						HDCMS 环境要求
					</div>
					<div class="panel-body" style="padding: 10px;">
						<table class="table table-hover table-striped">
							<thead>
							<tr>
								<th>参数</th>
								<th>说明</th>
								<th>状态</th>
							</tr>
							</thead>
							<tbody>
							<tr>
								<td>PHP版本</td>
								<td>要求PHP版本大于5.4</td>
								<td>{hd:h_PHP_VERSION}</td>
							</tr>
							<tr>
								<td>Mysql</td>
								<td>必须支持Mysql数据库</td>
								<td>{hd:h_mysql}</td>
							</tr>
							<tr>
								<td>Pdo</td>
								<td>不支持将不能操作数据库</td>
								<td>{hd:h_Pdo}</td>
							</tr>
							<tr>
								<td>GD图像库</td>
								<td>不支持将无法处理图像</td>
								<td>{hd:h_Gd}</td>
							</tr>
							<tr>
								<td>CURL</td>
								<td>微信等远程接口将需要CURL模块</td>
								<td>{hd:h_curl}</td>
							</tr>
							<tr>
								<td>openSSL</td>
								<td>需要支持</td>
								<td>{hd:h_openSSL}</td>
							</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div class="alert alert-info">
					检测安装HDCMS目录的可写权限
				</div>
				<div class="panel panel-default">
					<div class="panel-heading">
						目录权限检测
					</div>
					<div class="panel-body" style="padding: 10px;">
						<table class="table table-hover table-striped">
							<thead>
							<tr>
								<th>目录</th>
								<th>状态</th>
							</tr>
							</thead>
							<tbody>
							<tr>
								<td>./</td>
								<td>{hd:d_root}</td>
							</tr>
							</tbody>
						</table>
					</div>
				</div>
				<a href="javascript:history.back()" class="btn btn-success">返回</a>
				<a href="javascript:;" onclick="database();" class="btn btn-primary">继续</a>
			</div>
		</div>
	</div>
	<div class="text-center" style="color:#fff;"> ©2010 - 2019 hdcms.com Inc.</div>
</div>
</body>
</html>

<script>
	function database() {
		if ($(".fa-times-circle").length > 0) {
			alert('当前环境不可以安装HDCMS');
		} else {
			location.href = '?a=database';
		}
	}
</script>